home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
ezzcomm.zip
/
DIALSMRT.T
< prev
next >
Wrap
Text File
|
1991-02-16
|
3KB
|
71 lines
: EZ-ZCOMM Copyright 1991 by Roger E. Hough, All Rights Reserved.
: Licensed for use at your own risk without fee. Altered versions,
: when distributed, must be clearly marked as altered and accompanied
: by the originals.
ife "dT||!%telno" fail;ife r nolog close;kill
ena -dfEKS!abcilnptuvwzZ ha both
display stat=off noinhibit nodumb vt100 8bit
pf60 ph0 pp70 pt4 z pp50 pt100 pB2 set blankfill " " sets s9 %telno
pat;pat 0 ERROR;pat 1 BUSY
pat 2 "NO DIALTONE";pat 3 "NO DIAL TONE"
pat 4 "NO ANSWER";pat 5 "NO CARRIER"
pat 9c "CONNECT" "@pat 10i \n"
pat 11c " 300" "@set z9 300"
pat 12c " 600" "@set z9 600"
pat 13c " 1200" "@set z9 1200"
pat 14c " 2400" "@set z9 2400"
pat 15c " 4800" "@set z9 4800"
next:
bye;speed 2400;pat 10c "";split s9 + "";sets s9 %z1;split z0 "." "";set z9 300
put "ATD%mprefix\&%z0\&%msuffix"
pf60 wait -f60;if 10 speed z9;sets telno %z0 pf30 display nostat=off;cls;queue delete;ki create -+ %n9/ZC%d%ano.LOG;return
if 1||2||3 ife %s9 goback next;pi45 pat;bye;fail :modem detects busy
:if 1||2||3||5 ife %s9 goback next;pi45 pat;bye;fail :modem doesn't see 'busy'
pi0 set telno "" queue delete;pat;bye;fail
init:
set msuffix "\r";if c return
bye; display stat=off;speed 2400 ena -8g;handshake both
pat; pat 0i "OK\r\n";pat 1i "ERROR\r\n"
put "ATZ\r";wait -f15
: note: '\\' will send '\' to modem
put "ATM0V1X4&C1&D2&S1&T5\r";wait -f15
put "ATE0S0=0S2=255S6=6S10=6\r";wait -f15
pat;return
:
:Command Description
:------- --------------------------------------------------------
: E0 eliminate echoing of commands
: M0 Turn off speaker (M3 if you want to hear the phone ring)
: V1 Result codes rather than numbers
: X4 Connect message with bps rate specified
: &C1 Request proper Carrier Detection
: &D2 Disconnect and return to command state when DTR drops
: &S1 Request proper DSR indication (as per EIA RS232C)
: &T5 do not grant remote digital loop for remote modems(UUUUU stuff)
: S0=0 Do not answer the phone
: S2=255 Disable +++ escape, to avoid problems when we type +++ or
: the remote types +++ and we echo it
: S6=6 Wait up to 6 Seconds for Dial Tone
: S10=6 Little if any wait for carrier to return
:
: Guidelines which apply to all modems:
:
: o The modem must be set to react to the lowering of DTR by
: hanging up(placing phone on hook) and reverting to command
: state without re-initializing its settings.
: o The modem should be set to recognize BUSY if at all possible.
: o The modem should be set to recognize a lack of dial tone if at
: all possible.
: o The modem should be set to recognize NO ANSWER if at all
: possible.
: o The modem should not be set to attempt recognition of voice
: connections.
: o The modem should not be set to grant remote digital loop for
: remote modems. If you see strings of uppercase U's(UUUUUU),
: you've probably left this enabled.
: o If the 'time to wait before recognizing carrier' value is too
: small, it will result in false carrier detection on connects.
: If you observe carrier being detected and then lost again very
: soon afterward, or if your modem connects at 300bps to a
: high-speed modem, try adjusting this value.